package com.rabbit.eap.system.enums;

import com.rabbit.eap.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @projectName: eap
 * @packageName: com.rabbit.eap.system.enums
 * @className: RoleStateEnum
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/7/9 21:44
 * <p>Description: RoleStateEnum
 * 系统角色枚举类
 * </p>

 */
@Getter
@AllArgsConstructor
public enum RoleStateEnum implements BaseEnum {
    ROLE_HAS_EXIST(10103, "角色名称已存在"),
    ROLE_PRIVILEGE_EXIST(10104, "角色key已存在"),
    CNA_NOT_DELETE(10105, "%1$s已分配,不能删除"),
    ROLE_ID(10106, "角色编号"),
    AUTH_DATA_SCOPE_SUCCESS(10107, "数据权限分配成功"),
    AUTH_DATA_SCOPE_FAIL(10108, "数据权限分配失败"),
    AUTH_ROLE_MENU_SUCCESS(10109, "菜单权限分配成功"),
    AUTH_ROLE_MENU_FAIL(10110, "菜单权限分配失败")
    ;

    private Integer code;
    private String desc;
}
